package com.it.base.core.system.user.model.from;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysUserValidatorFormDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(name = "id", value = "主键", dataType = "String")
	private String id;

	@ApiModelProperty(name = "value", value = "用户名", dataType = "String", required = true)
	@NotNull(message = "用户名")
	@NotBlank(message = "用户名")
	private String userName;

	@ApiModelProperty(name = "value", value = "密码", dataType = "String", required = true)
	@NotNull(message = "密码")
	@NotBlank(message = "密码")
	private String password;
}
